package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsModuleGetActivityList;
/**
 * 点击首页版块进入版块活动列表，显示该版块下的活动列表
 * @author wliu
 * edit tse
 */
public class MomentsModuleGetActivityListResponse extends RudderResponse{
    
    private List<MomentsModuleGetActivityList> getActivityList = new ArrayList<MomentsModuleGetActivityList>();
		
	
    /**
     * @return getActivityList
     */	
    public List<MomentsModuleGetActivityList> getGetActivityList() { 
	    return this.getActivityList;
    };
	
	/**
     * @return getActivityList
     */	
    public void setGetActivityList(List<MomentsModuleGetActivityList> getActivityList) { 
        this.getActivityList = getActivityList;
    };
    
	
        
    private static void filterFor(MomentsModuleGetActivityListJoinMembers moments) {
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
    }
        
    private static void filterFor(MomentsModuleGetActivityList moments) {
        if (moments.getActivityId() == null) {
            moments.setActivityId("");
        }
        if (moments.getTitle() == null) {
            moments.setTitle("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
        if (moments.getDesc() == null) {
            moments.setDesc("");
        }
        if (moments.getJoinMembers() == null) {
            moments.setJoinMembers(new ArrayList<MomentsModuleGetActivityListJoinMembers>());
        } else {
            for (MomentsModuleGetActivityListJoinMembers item : moments.getJoinMembers()) {
                filterFor(item);
            }
        }
    }
        
    public static void filter(MomentsModuleGetActivityListResponse moments) {
        if (moments.getGetActivityList() == null) {
            moments.setGetActivityList(new ArrayList<MomentsModuleGetActivityList>());
        } else {
            for (MomentsModuleGetActivityList item : moments.getGetActivityList()) {
                filterFor(item);
            }
        }
    }
}
